#include "StdAfx.h"
#include "Client.h"
#include "FileDB.h"
#include "ClientNetsystem.h"

using namespace seven;

Client::Client( QObject *parent ): QObject(parent)
{
	pClientNetsystem = new ClientNetsystem(this);
}


Client::~Client(void)
{
	SAFE_DELETE(pClientNetsystem);
}

void Client::Connect( const QString& host, const QString& port )
{
	if (pClientNetsystem)
	{
		pClientNetsystem->Connect(host,port);
	}
}

void Client::Start()
{
	if (pClientNetsystem)
	{
		pClientNetsystem->Start();
	}
}
		
